package aop002;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class MyAspect {
	@Before("execution(* housework())")
	public void before(JoinPoint joinPoint){
		System.out.println("얼굴 인식 확인: 문을 개방하라");
	}

	@After("execution(* housework())")
	public void after(JoinPoint joinPoint){
		System.out.println("주인님 외출 확인: 문 자동 잠금");
	}
}